﻿@{
    int size = Svc.Config(Par.In("WebPortal").Of(this).Name("Size"), 75);
}

@if(Model.AvatarFile == null)
{
    Html.RenderPartial("_NoImage");
}
else 
{
    <img alt="@JDM.String(Model.AvatarFile.Name)" src="@Url.Action(Loc.Act("Image").Ctrl("Media").Set(new
    {
        guid = JDM.Guid(Model.AvatarFile.Guid),
        size
    }))" />
}